package com.cuc.platform.core.componet.security;

/**
 * 资源、权限管理bean
 * 
 * 资源：访问URL或其他资源类型
 * 权限：资源对应的访问权限字符串，形如：authc, roles[admin]
 */
public class ShiroResource {
    private String resource;//资源
    private String authority;//权限

	public ShiroResource() {
    }
    
    public ShiroResource(String resource, String authority) {
        this.resource = resource;
        this.authority = authority;
    }

	/**
	 * @return the resource
	 */
	public String getResource() {
		return resource;
	}

	/**
	 * @param resource the resource to set
	 */
	public void setResource(String resource) {
		this.resource = resource;
	}

	/**
	 * @return the authority
	 */
	public String getAuthority() {
		return authority;
	}

	/**
	 * @param authority the authority to set
	 */
	public void setAuthority(String authority) {
		this.authority = authority;
	}
}
